Page({
  data: {
      current: 'index',
      urlObj:{
        index: "/pages/index/index",
        course: "/pages/course/index",
        meeting: "/pages/meeting/index",
        mine: "/pages/mine/index"
      }
  },

  handleChange ({ detail }) {
    let url = this.data.urlObj[detail.key]
    wx.switchTab({url})
      this.setData({
          current: detail.key
      });
  }
});